/*
 * Copyright (c) 2017 alibbaba-inc
 * 数据mock详情见：http://site.alibaba.net/nuke/docs_tools/fie-toolkit-nuke/mock.html
*/

'use strict';
const api = {
  local:{
    'interface.page.get_promo_items':{        //fetch请求
      type:'jsonp',
      value:'../data/item.json'
    },
    'interface.page.init.get': {       //fetch请求
      type:'jsonp',
      value:'../data/local.json'
    },
    'page.demo':{                      //mtop请求
      type:'jsonp',
      value:'../data/mtop.json'
    },
    'interview.get':{                  //千牛网关请求
        type:'jsonp',
        value:'../data/local.json',
        method:'GET'
    }
  },
  product:{
    'interface.page.get_promo_items':{        //获取折扣商品
      type:'jsonp',
      value:'https://shopmobile.ews.m.jaeapp.com/index.php/QnuiRingsMobile/Index/get_promo_items'
    },
    'interface.page.check_nick':{        //检查用户资格
      type:'jsonp',
      value:'https://shopmobile.ews.m.jaeapp.com/index.php/QnuiRingsMobile/Index/check_nick'
    },
    'interface.page.start_task':{        //检查用户资格
      type:'jsonp',
      value:'https://shopmobile.ews.m.jaeapp.com/index.php/QnuiRingsMobile/Index/start_task'
    },
    'interface.page.init.get':{        //fetch请求
      type:'jsonp',
      value:'http://localhost'
    },
    'page.demo':{                      //mtop请求
      type:'mtop',
      value:'mtop.order.querySoldList'
    },
    'interview.get':{                  //千牛网关请求
        type:'callGWInterface',
        value:'circles.interview.get',
        method:'GET'
    }
  }
}


export default api; 

